#include <iostream>

extern int yyparse();

int main(int argc, const char *argv[]) {
    if (argc != 2) {
        std::cout << "Usage: " << argv[0] << " filename" << std::endl;
        return 1;
    }

    freopen(argv[1], "r", stdin);
    while (!feof(stdin))
        yyparse();

    return 0;
}